package com.lz.vo.xjl;

import com.lz.entity.EquipmentSheet;
import lombok.Data;

import java.util.Date;

/**
 * @author 徐建林
 * @date 2018/10/27 18:57
 */
@Data
public class ListEquipmentSheetVO {
    private Integer equipmentSheetNo;
    private String upholsteryType;
    private Integer customerId;
    private String customerName;
    private String customerTel;
    private String vin;
    private Date openingTime;
    private Double totalPrice;
    private Double givenMoney;
    private Double receivables;
    private Double received;
    private String equipmentSheetState;

    public ListEquipmentSheetVO(EquipmentSheet equipmentSheet) {
        this.equipmentSheetNo = equipmentSheet.getEquipmentSheetNo();
        this.upholsteryType = equipmentSheet.getUpholsteryType().getUpholsteryType();
        this.customerId = equipmentSheet.getCustomer().getCustomerId();
        this.customerName = equipmentSheet.getCustomer().getCustomerName();
        this.customerTel =  equipmentSheet.getCustomer().getCustomerTel();
        this.vin = equipmentSheet.getCar().getVin();
        this.openingTime = equipmentSheet.getOpeningTime();
        this.totalPrice = equipmentSheet.getTotalPrice();
        this.givenMoney = equipmentSheet.getGivenMoney();
        this.receivables = equipmentSheet.getReceivables();
        this.received = equipmentSheet.getReceived();
        this.equipmentSheetState = equipmentSheet.getEquipmentSheetState();
    }
}
